package com.ss.jdk.fun;

import java.util.function.Function;

/**
 * @Auther: ljy.s
 * @Date: 2022/9/10 - 09 - 10 - 14:15
 */
public class FunctionTest {

    // 这是一个main方法，是程序的入口：
    public static void main(String[] args) {
        test(msg -> {
            return Integer.parseInt(msg);
        });
    }

    public static void test(Function<String,Integer> function) {
        Integer apply = function.apply("ss");
        System.out.println("apply = " + apply);
    }
}
